<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript"  src="../Public/js/Base.js"></script>
<script type="text/javascript"  src="../Public/js/prototype.js"></script>
<script type="text/javascript"  src="../Public/js/mootools.js"></script>
<script type="text/javascript"  src="../Public/js/Ajax/ThinkAjax.js"></script>
<title>学技能网系统后台登录</title>
<style type="text/css">
<!--
*{
	padding:0px;
	margin:0px;
	font-family:Verdana, Arial, Helvetica, sans-serif;
}
body {
	margin: 0px;
	background:#F7F7F7;
	font-size:12px;
}
input{
	vertical-align:middle;
}
img{
	border:none;
	vertical-align:middle;
}
.main{
	width:640px;
	margin:100px auto 0px;
	border:4px solid #EEE;
	background:#FFF;
	padding-bottom:10px;
}

.main .title{
	width:600px;
	height:50px;
	margin:0px auto;
	text-align:center;
	line-height:46px;
	font-size:18px;
	letter-spacing:2px;
	color:#F60;
	font-weight:bold;
}

.main .login{
	width:560px;
	margin:20px auto 0px;
	overflow:hidden;
}
.main .login .inputbox{
	width:260px;
	float:left;
	background:url(../Public/images/login_input_hr.gif) right center no-repeat;
}
.main .login .inputbox dl{
	width:230px;
	height:41px;
	clear:both;
}
.main .login .inputbox dl dt{
	float:left;
	width:60px;
	height:31px;
	line-height:31px;
	text-align:right;
	font-weight:bold;
}
.main .login .inputbox dl dd{
	width:160px;
	float:right;
	padding-top:1px;
}
.main .login .inputbox dl dd input{
	font-size:12px;
	font-weight:bold;
	border:1px solid #888;
	padding:4px;
	background:url(../Public/images/login_input_bg.gif) left top no-repeat;
	
}
.main .login .butbox{
	float:left;
	width:200px;
	margin-left:26px;
}
.main .login .butbox dl{
	width:200px;
	height:50px;
}
.main .login .butbox dl dt{
	width:160px;
	height:51px;
	padding-top:5px;
}
.main .login .butbox dl dt input{
	width:98px;
	height:33px;
	background:url(../Public/images/login_submit.gif) no-repeat;
	margin-left:70px;
	border:none;
	cursor:pointer;
}
#verifyImg
{
    margin-left:150px;
    margin-top: -35px;


}

.result
{
    text-align: center;
    font-size: 18px;
    color:#F60;
    font-weight:bold;
}
-->
</style>
<script type="text/javascript" language="javascript">
//ThinkAjax.updateTip='<IMG SRC="../Public/images/ajaxloading.gif" WIDTH="16" HEIGHT="16" BORDER="0" ALT="" align="absmiddle"> 登录中～';
function complete(data,status)
{
    if (status==1)
        {
        $('result').innerHTML= '<span style="color:blue"><IMG SRC="../Public/images/ok.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle" /> <a href="__URL__/main/">登录成功</a></span>';
		//window.location.href = 'http://sina.com.cn';
        //$('form1').reset();
		
		
        //window.location = '__URL__/main/';
        }
}
function freshVerify()
{
    //重载验证码
var timenow = new Date().getTime();
$('verifyImg').src= '__URL__/verify/'+timenow;
}
</script>
</head>
<body>
<div class="main">
		<div class="title">
		校园订水后台系统登录
		</div>
		
		<div class="login">
		<form method="post"  name="form1" id="form1" >

           
        <div class="inputbox">
				<dl>
					<dt>用户名：</dt>
					<dd>
						<input type="text" name="ad_name" id="user_name" size="30" onfocus="this.style.borderColor='#F93'" onblur="this.style.borderColor='#888'" />
					</dd>
				</dl>
				<dl>
					<dt>密码：</dt>
					<dd>
						<input type="password" name="ad_pwd"  id="user_pwd" size="30" onfocus="this.style.borderColor='#F93'" onblur="this.style.borderColor='#888'" />
					</dd>
				</dl>	
				<dl>
					<dt>验证码：</dt>
					<dd>
                                                <input type='text' name='ad_ver' id="user_ver" size="15" onfocus="this.style.borderColor='#F93'" onblur="this.style.borderColor='#888'">
                                                <img style='cursor:pointer' title='刷新验证码' src='__URL__/verify' id='verifyImg' onClick='freshVerify()'/>


					</dd>
				</dl>
                             <dl>
					<dd>
                                            <div id="result" class="result"></div>
					</dd>
				</dl>
       </div>
    <div class="butbox">
        <dl>
            <dt><input  type="button" value="" name="login" onclick="ThinkAjax.sendForm('form1','__URL__/checklogin',complete,'result');"/></dt>
           
			</dl>
		</div>
		</form>
                </div>
</div>	
</body>
</html>